package Domain;

import java.util.Date;

//商品
public class Product {
    private int id;
    private String name;//商品名称
    private double price;//商品单价
    private String picture;//商品图片
    private int num;//商品库存数量
    private String descriptions;//商品详细描述
    private Date upTime;//上架时间
    private int typeId;
    private String pname;
    private String detail;//详情

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getDescriptions() {
        return descriptions;
    }

    public void setDescriptions(String descriptions) {
        this.descriptions = descriptions;
    }

    public Date getUpTime() {
        return upTime;
    }

    public void setUpTime(Date upTime) {
        this.upTime = upTime;
    }

    public int getTypeId() {
        return typeId;
    }

    public void setTypeId(int typeId) {
        this.typeId = typeId;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", picture='" + picture + '\'' +
                ", num=" + num +
                ", descriptions='" + descriptions + '\'' +
                ", upTime=" + upTime +
                ", typeId=" + typeId +
                ", pname='" + pname + '\'' +
                ", detail='" + detail + '\'' +
                '}';
    }
}
